<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>接龙展示 - 使用插件</title>
    <script src="./lib/g6.js"></script>
    <script src="./lib/plugins.js"></script>
    <script src="./data.js"></script>
    <style>
      #mountNode {
        border: 1px solid #ccc;
      }
    </style>
  </head>
  <body>
    <div id="mountNode"></div>
    <script>
      const graph = new G6.Graph({
        container: "mountNode",
        height: 800,
        renderer: "svg",
        fitView: "lc",
        layout: new G6.Layouts["Dagre"]({
          rankdir: "LR"
        }),
        modes: {
          default: ["panCanvas", "wheelZoom"]
        }
      });
      graph.edge({
        shape: "polyline-round", // 'quadraticCurve',
        style: {
          stroke: "#666",
          lineWidth: 1,
          strokeOpacity: 1,
          endArrow: true
        }
      });
      graph.read(data);
    </script>
  </body>
</html>
